.class public Lcom/bitauto/autoeasy/favorite/FavoriteList;
.super Lcom/bitauto/autoeasy/BaseListActivity;
.source "FavoriteList.java"

# interfaces
.implements Landroid/view/View$OnClickListener;
.implements Landroid/widget/AdapterView$OnItemClickListener;
.implements Landroid/widget/AdapterView$OnItemLongClickListener;


# annotations
.annotation system Ldalvik/annotation/Signature;
    value = {
        "Lcom/bitauto/autoeasy/BaseListActivity;",
        "Landroid/view/View$OnClickListener;",
        "Landroid/widget/AdapterView$OnItemClickListener;",
        "Landroid/widget/AdapterView$OnItemLongClickListener;"
    }
.end annotation


# instance fields
.field private TAG:Ljava/lang/String;

.field private final VENDORID:Ljava/lang/String;

.field private final VENDORNAME:Ljava/lang/String;

.field private bbsCarTypeAdapter:Lcom/bitauto/autoeasy/bbs/Adapter/BbsCarTypeAdapter;

.field private button01:Landroid/widget/Button;

.field private button02:Landroid/widget/Button;

.field private button03:Landroid/widget/Button;

.field private contentResolver:Landroid/content/ContentResolver;

.field private dealerAdapter:Lcom/bitauto/autoeasy/news/Adapter/DealerTitleAdapter;

.field private favCarAdapter:Lcom/bitauto/autoeasy/favorite/Adapter/FavCarListAdapter;

.field private flag:I

.field private list:Ljava/util/ArrayList;
    .annotation system Ldalvik/annotation/Signature;
        value = {
            "Ljava/util/ArrayList",
            "<",
            "Lcom/bitauto/autoeasy/selectcar/Object/CarSummary;",
            ">;"
        }
    .end annotation
.end field

.field private list2:Ljava/util/ArrayList;
    .annotation system Ldalvik/annotation/Signature;
        value = {
            "Ljava/util/ArrayList",
            "<",
            "Lcom/bitauto/autoeasy/selectcar/Object/Dealer;",
            ">;"
        }
    .end annotation
.end field

.field private list3:Ljava/util/ArrayList;
    .annotation system Ldalvik/annotation/Signature;
        value = {
            "Ljava/util/ArrayList",
            "<",
            "Lcom/bitauto/autoeasy/bbs/Object/BbsCarType;",
            ">;"
        }
    .end annotation
.end field

.field private listView:Landroid/widget/ListView;

.field private str:[Ljava/lang/String;


# direct methods
.method public constructor <init>()V
    .locals 3

    .prologue
    .line 44
    invoke-direct {p0}, Lcom/bitauto/autoeasy/BaseListActivity;-><init>()V

    .line 60
    const/4 v0, 0x2

    new-array v0, v0, [Ljava/lang/String;

    const/4 v1, 0x0

    const-string v2, "\u67e5\u770b"

    aput-object v2, v0, v1

    const/4 v1, 0x1

    const-string v2, "\u5220\u9664"

    aput-object v2, v0, v1

    iput-object v0, p0, Lcom/bitauto/autoeasy/favorite/FavoriteList;->str:[Ljava/lang/String;

    .line 64
    const-string v0, "VendorID"

    iput-object v0, p0, Lcom/bitauto/autoeasy/favorite/FavoriteList;->VENDORID:Ljava/lang/String;

    .line 65
    const-string v0, "vendorName"

    iput-object v0, p0, Lcom/bitauto/autoeasy/favorite/FavoriteList;->VENDORNAME:Ljava/lang/String;

    .line 66
    const-string v0, "FavoriteList"

    iput-object v0, p0, Lcom/bitauto/autoeasy/favorite/FavoriteList;->TAG:Ljava/lang/String;

    .line 44
    return-void
.end method

.method static synthetic access$0(Lcom/bitauto/autoeasy/favorite/FavoriteList;)Ljava/util/ArrayList;
    .locals 1
    .parameter

    .prologue
    .line 56
    iget-object v0, p0, Lcom/bitauto/autoeasy/favorite/FavoriteList;->list:Ljava/util/ArrayList;

    return-object v0
.end method

.method static synthetic access$1(Lcom/bitauto/autoeasy/favorite/FavoriteList;)Lcom/bitauto/autoeasy/favorite/Adapter/FavCarListAdapter;
    .locals 1
    .parameter

    .prologue
    .line 50
    iget-object v0, p0, Lcom/bitauto/autoeasy/favorite/FavoriteList;->favCarAdapter:Lcom/bitauto/autoeasy/favorite/Adapter/FavCarListAdapter;

    return-object v0
.end method

.method static synthetic access$2(Lcom/bitauto/autoeasy/favorite/FavoriteList;)Landroid/content/ContentResolver;
    .locals 1
    .parameter

    .prologue
    .line 54
    iget-object v0, p0, Lcom/bitauto/autoeasy/favorite/FavoriteList;->contentResolver:Landroid/content/ContentResolver;

    return-object v0
.end method

.method static synthetic access$3(Lcom/bitauto/autoeasy/favorite/FavoriteList;)Ljava/util/ArrayList;
    .locals 1
    .parameter

    .prologue
    .line 57
    iget-object v0, p0, Lcom/bitauto/autoeasy/favorite/FavoriteList;->list2:Ljava/util/ArrayList;

    return-object v0
.end method

.method static synthetic access$4(Lcom/bitauto/autoeasy/favorite/FavoriteList;)Lcom/bitauto/autoeasy/news/Adapter/DealerTitleAdapter;
    .locals 1
    .parameter

    .prologue
    .line 51
    iget-object v0, p0, Lcom/bitauto/autoeasy/favorite/FavoriteList;->dealerAdapter:Lcom/bitauto/autoeasy/news/Adapter/DealerTitleAdapter;

    return-object v0
.end method

.method static synthetic access$5(Lcom/bitauto/autoeasy/favorite/FavoriteList;)Ljava/util/ArrayList;
    .locals 1
    .parameter

    .prologue
    .line 58
    iget-object v0, p0, Lcom/bitauto/autoeasy/favorite/FavoriteList;->list3:Ljava/util/ArrayList;

    return-object v0
.end method

.method static synthetic access$6(Lcom/bitauto/autoeasy/favorite/FavoriteList;)Lcom/bitauto/autoeasy/bbs/Adapter/BbsCarTypeAdapter;
    .locals 1
    .parameter

    .prologue
    .line 52
    iget-object v0, p0, Lcom/bitauto/autoeasy/favorite/FavoriteList;->bbsCarTypeAdapter:Lcom/bitauto/autoeasy/bbs/Adapter/BbsCarTypeAdapter;

    return-object v0
.end method


# virtual methods
.method public Cursor2List(Landroid/database/Cursor;)Ljava/util/ArrayList;
    .locals 3
    .parameter "cursor"
    .annotation system Ldalvik/annotation/Signature;
        value = {
            "(",
            "Landroid/database/Cursor;",
            ")",
            "Ljava/util/ArrayList",
            "<",
            "Lcom/bitauto/autoeasy/selectcar/Object/CarSummary;",
            ">;"
        }
    .end annotation

    .prologue
    .line 182
    new-instance v1, Ljava/util/ArrayList;

    invoke-direct {v1}, Ljava/util/ArrayList;-><init>()V

    .line 183
    .local v1, list:Ljava/util/ArrayList;,"Ljava/util/ArrayList<Lcom/bitauto/autoeasy/selectcar/Object/CarSummary;>;"
    :goto_0
    invoke-interface {p1}, Landroid/database/Cursor;->moveToNext()Z

    move-result v2

    if-nez v2, :cond_0

    .line 195
    return-object v1

    .line 184
    :cond_0
    new-instance v0, Lcom/bitauto/autoeasy/selectcar/Object/CarSummary;

    invoke-direct {v0}, Lcom/bitauto/autoeasy/selectcar/Object/CarSummary;-><init>()V

    .line 186
    .local v0, car:Lcom/bitauto/autoeasy/selectcar/Object/CarSummary;
    const-string v2, "carid"

    invoke-interface {p1, v2}, Landroid/database/Cursor;->getColumnIndex(Ljava/lang/String;)I

    move-result v2

    .line 185
    invoke-interface {p1, v2}, Landroid/database/Cursor;->getInt(I)I

    move-result v2

    invoke-virtual {v0, v2}, Lcom/bitauto/autoeasy/selectcar/Object/CarSummary;->setCarID(I)V

    .line 188
    const-string v2, "carname"

    invoke-interface {p1, v2}, Landroid/database/Cursor;->getColumnIndex(Ljava/lang/String;)I

    move-result v2

    .line 187
    invoke-interface {p1, v2}, Landroid/database/Cursor;->getString(I)Ljava/lang/String;

    move-result-object v2

    invoke-virtual {v0, v2}, Lcom/bitauto/autoeasy/selectcar/Object/CarSummary;->setCarName(Ljava/lang/String;)V

    .line 190
    const-string v2, "rang"

    invoke-interface {p1, v2}, Landroid/database/Cursor;->getColumnIndex(Ljava/lang/String;)I

    move-result v2

    .line 189
    invoke-interface {p1, v2}, Landroid/database/Cursor;->getString(I)Ljava/lang/String;

    move-result-object v2

    invoke-virtual {v0, v2}, Lcom/bitauto/autoeasy/selectcar/Object/CarSummary;->setRang(Ljava/lang/String;)V

    .line 192
    const-string v2, "imagepath"

    invoke-interface {p1, v2}, Landroid/database/Cursor;->getColumnIndex(Ljava/lang/String;)I

    move-result v2

    .line 191
    invoke-interface {p1, v2}, Landroid/database/Cursor;->getString(I)Ljava/lang/String;

    move-result-object v2

    invoke-virtual {v0, v2}, Lcom/bitauto/autoeasy/selectcar/Object/CarSummary;->setImagePath(Ljava/lang/String;)V

    .line 193
    invoke-virtual {v1, v0}, Ljava/util/ArrayList;->add(Ljava/lang/Object;)Z

    goto :goto_0
.end method

.method public Cursor2List2(Landroid/database/Cursor;)Ljava/util/ArrayList;
    .locals 4
    .parameter "cursor"
    .annotation system Ldalvik/annotation/Signature;
        value = {
            "(",
            "Landroid/database/Cursor;",
            ")",
            "Ljava/util/ArrayList",
            "<",
            "Lcom/bitauto/autoeasy/selectcar/Object/Dealer;",
            ">;"
        }
    .end annotation

    .prologue
    .line 205
    const-string v1, ""

    .line 206
    .local v1, flag:Ljava/lang/String;
    new-instance v2, Ljava/util/ArrayList;

    invoke-direct {v2}, Ljava/util/ArrayList;-><init>()V

    .line 207
    .local v2, list:Ljava/util/ArrayList;,"Ljava/util/ArrayList<Lcom/bitauto/autoeasy/selectcar/Object/Dealer;>;"
    :goto_0
    invoke-interface {p1}, Landroid/database/Cursor;->moveToNext()Z

    move-result v3

    if-nez v3, :cond_0

    .line 236
    return-object v2

    .line 208
    :cond_0
    new-instance v0, Lcom/bitauto/autoeasy/selectcar/Object/Dealer;

    invoke-direct {v0}, Lcom/bitauto/autoeasy/selectcar/Object/Dealer;-><init>()V

    .line 210
    .local v0, dealer:Lcom/bitauto/autoeasy/selectcar/Object/Dealer;
    const-string v3, "dealer_id"

    invoke-interface {p1, v3}, Landroid/database/Cursor;->getColumnIndex(Ljava/lang/String;)I

    move-result v3

    .line 209
    invoke-interface {p1, v3}, Landroid/database/Cursor;->getString(I)Ljava/lang/String;

    move-result-object v3

    invoke-virtual {v0, v3}, Lcom/bitauto/autoeasy/selectcar/Object/Dealer;->setVendorID(Ljava/lang/String;)V

    .line 212
    const-string v3, "dealer_name"

    invoke-interface {p1, v3}, Landroid/database/Cursor;->getColumnIndex(Ljava/lang/String;)I

    move-result v3

    .line 211
    invoke-interface {p1, v3}, Landroid/database/Cursor;->getString(I)Ljava/lang/String;

    move-result-object v3

    invoke-virtual {v0, v3}, Lcom/bitauto/autoeasy/selectcar/Object/Dealer;->setVendorName(Ljava/lang/String;)V

    .line 214
    const-string v3, "dealer_add"

    invoke-interface {p1, v3}, Landroid/database/Cursor;->getColumnIndex(Ljava/lang/String;)I

    move-result v3

    .line 213
    invoke-interface {p1, v3}, Landroid/database/Cursor;->getString(I)Ljava/lang/String;

    move-result-object v3

    invoke-virtual {v0, v3}, Lcom/bitauto/autoeasy/selectcar/Object/Dealer;->setVendorSaleAddr(Ljava/lang/String;)V

    .line 216
    const-string v3, "dealer_mode"

    invoke-interface {p1, v3}, Landroid/database/Cursor;->getColumnIndex(Ljava/lang/String;)I

    move-result v3

    .line 215
    invoke-interface {p1, v3}, Landroid/database/Cursor;->getString(I)Ljava/lang/String;

    move-result-object v3

    invoke-virtual {v0, v3}, Lcom/bitauto/autoeasy/selectcar/Object/Dealer;->setVendorBizMode(Ljava/lang/String;)V

    .line 218
    const-string v3, "dealer_phone"

    invoke-interface {p1, v3}, Landroid/database/Cursor;->getColumnIndex(Ljava/lang/String;)I

    move-result v3

    .line 217
    invoke-interface {p1, v3}, Landroid/database/Cursor;->getString(I)Ljava/lang/String;

    move-result-object v3

    invoke-virtual {v0, v3}, Lcom/bitauto/autoeasy/selectcar/Object/Dealer;->setCallCenterNumber(Ljava/lang/String;)V

    .line 220
    const-string v3, "dealer_price"

    invoke-interface {p1, v3}, Landroid/database/Cursor;->getColumnIndex(Ljava/lang/String;)I

    move-result v3

    .line 219
    invoke-interface {p1, v3}, Landroid/database/Cursor;->getString(I)Ljava/lang/String;

    move-result-object v3

    invoke-virtual {v0, v3}, Lcom/bitauto/autoeasy/selectcar/Object/Dealer;->setVcl_VendorPrice(Ljava/lang/String;)V

    .line 222
    const-string v3, "car_name"

    invoke-interface {p1, v3}, Landroid/database/Cursor;->getColumnIndex(Ljava/lang/String;)I

    move-result v3

    .line 221
    invoke-interface {p1, v3}, Landroid/database/Cursor;->getString(I)Ljava/lang/String;

    move-result-object v3

    invoke-virtual {v0, v3}, Lcom/bitauto/autoeasy/selectcar/Object/Dealer;->setVendorFullName(Ljava/lang/String;)V

    .line 224
    const-string v3, ""

    invoke-virtual {v1, v3}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z

    move-result v3

    if-eqz v3, :cond_1

    .line 225
    invoke-virtual {v0}, Lcom/bitauto/autoeasy/selectcar/Object/Dealer;->getVendorFullName()Ljava/lang/String;

    move-result-object v1

    .line 226
    new-instance v3, Lcom/bitauto/autoeasy/selectcar/Object/Dealer;

    invoke-direct {v3, v1}, Lcom/bitauto/autoeasy/selectcar/Object/Dealer;-><init>(Ljava/lang/String;)V

    invoke-virtual {v2, v3}, Ljava/util/ArrayList;->add(Ljava/lang/Object;)Z

    .line 227
    invoke-virtual {v2, v0}, Ljava/util/ArrayList;->add(Ljava/lang/Object;)Z

    goto :goto_0

    .line 228
    :cond_1
    invoke-virtual {v0}, Lcom/bitauto/autoeasy/selectcar/Object/Dealer;->getVendorFullName()Ljava/lang/String;

    move-result-object v3

    invoke-virtual {v1, v3}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z

    move-result v3

    if-eqz v3, :cond_2

    .line 229
    invoke-virtual {v2, v0}, Ljava/util/ArrayList;->add(Ljava/lang/Object;)Z

    goto/16 :goto_0

    .line 231
    :cond_2
    invoke-virtual {v0}, Lcom/bitauto/autoeasy/selectcar/Object/Dealer;->getVendorFullName()Ljava/lang/String;

    move-result-object v1

    .line 232
    new-instance v3, Lcom/bitauto/autoeasy/selectcar/Object/Dealer;

    invoke-direct {v3, v1}, Lcom/bitauto/autoeasy/selectcar/Object/Dealer;-><init>(Ljava/lang/String;)V

    invoke-virtual {v2, v3}, Ljava/util/ArrayList;->add(Ljava/lang/Object;)Z

    .line 233
    invoke-virtual {v2, v0}, Ljava/util/ArrayList;->add(Ljava/lang/Object;)Z

    goto/16 :goto_0
.end method

.method public Cursor2List3(Landroid/database/Cursor;)Ljava/util/ArrayList;
    .locals 3
    .parameter "cursor"
    .annotation system Ldalvik/annotation/Signature;
        value = {
            "(",
            "Landroid/database/Cursor;",
            ")",
            "Ljava/util/ArrayList",
            "<",
            "Lcom/bitauto/autoeasy/bbs/Object/BbsCarType;",
            ">;"
        }
    .end annotation

    .prologue
    .line 246
    new-instance v1, Ljava/util/ArrayList;

    invoke-direct {v1}, Ljava/util/ArrayList;-><init>()V

    .line 247
    .local v1, list:Ljava/util/ArrayList;,"Ljava/util/ArrayList<Lcom/bitauto/autoeasy/bbs/Object/BbsCarType;>;"
    :goto_0
    invoke-interface {p1}, Landroid/database/Cursor;->moveToNext()Z

    move-result v2

    if-nez v2, :cond_0

    .line 260
    return-object v1

    .line 248
    :cond_0
    new-instance v0, Lcom/bitauto/autoeasy/bbs/Object/BbsCarType;

    invoke-direct {v0}, Lcom/bitauto/autoeasy/bbs/Object/BbsCarType;-><init>()V

    .line 250
    .local v0, bbsInfo:Lcom/bitauto/autoeasy/bbs/Object/BbsCarType;
    const-string v2, "id"

    invoke-interface {p1, v2}, Landroid/database/Cursor;->getColumnIndex(Ljava/lang/String;)I

    move-result v2

    .line 249
    invoke-interface {p1, v2}, Landroid/database/Cursor;->getString(I)Ljava/lang/String;

    move-result-object v2

    invoke-virtual {v0, v2}, Lcom/bitauto/autoeasy/bbs/Object/BbsCarType;->setBbsid(Ljava/lang/String;)V

    .line 252
    const-string v2, "bbsname"

    invoke-interface {p1, v2}, Landroid/database/Cursor;->getColumnIndex(Ljava/lang/String;)I

    move-result v2

    .line 251
    invoke-interface {p1, v2}, Landroid/database/Cursor;->getString(I)Ljava/lang/String;

    move-result-object v2

    invoke-virtual {v0, v2}, Lcom/bitauto/autoeasy/bbs/Object/BbsCarType;->setBbsname(Ljava/lang/String;)V

    .line 254
    const-string v2, "bbscounts"

    invoke-interface {p1, v2}, Landroid/database/Cursor;->getColumnIndex(Ljava/lang/String;)I

    move-result v2

    .line 253
    invoke-interface {p1, v2}, Landroid/database/Cursor;->getString(I)Ljava/lang/String;

    move-result-object v2

    invoke-virtual {v0, v2}, Lcom/bitauto/autoeasy/bbs/Object/BbsCarType;->setPosts(Ljava/lang/String;)V

    .line 256
    const-string v2, "bbstopics"

    invoke-interface {p1, v2}, Landroid/database/Cursor;->getColumnIndex(Ljava/lang/String;)I

    move-result v2

    .line 255
    invoke-interface {p1, v2}, Landroid/database/Cursor;->getString(I)Ljava/lang/String;

    move-result-object v2

    invoke-virtual {v0, v2}, Lcom/bitauto/autoeasy/bbs/Object/BbsCarType;->setTopiccount(Ljava/lang/String;)V

    .line 257
    const-string v2, "autoEasy"

    invoke-virtual {v0, v2}, Lcom/bitauto/autoeasy/bbs/Object/BbsCarType;->setImage(Ljava/lang/String;)V

    .line 258
    invoke-virtual {v1, v0}, Ljava/util/ArrayList;->add(Ljava/lang/Object;)Z

    goto :goto_0
.end method

.method public Dialog_01(Lcom/bitauto/autoeasy/selectcar/Object/CarSummary;)Landroid/app/AlertDialog;
    .locals 3
    .parameter "carSummary"

    .prologue
    .line 329
    new-instance v0, Landroid/app/AlertDialog$Builder;

    invoke-direct {v0, p0}, Landroid/app/AlertDialog$Builder;-><init>(Landroid/content/Context;)V

    .line 330
    .local v0, builder:Landroid/app/AlertDialog$Builder;
    invoke-virtual {p1}, Lcom/bitauto/autoeasy/selectcar/Object/CarSummary;->getCarName()Ljava/lang/String;

    move-result-object v1

    invoke-virtual {v0, v1}, Landroid/app/AlertDialog$Builder;->setTitle(Ljava/lang/CharSequence;)Landroid/app/AlertDialog$Builder;

    .line 331
    iget-object v1, p0, Lcom/bitauto/autoeasy/favorite/FavoriteList;->str:[Ljava/lang/String;

    new-instance v2, Lcom/bitauto/autoeasy/favorite/FavoriteList$1;

    invoke-direct {v2, p0, p1}, Lcom/bitauto/autoeasy/favorite/FavoriteList$1;-><init>(Lcom/bitauto/autoeasy/favorite/FavoriteList;Lcom/bitauto/autoeasy/selectcar/Object/CarSummary;)V

    invoke-virtual {v0, v1, v2}, Landroid/app/AlertDialog$Builder;->setItems([Ljava/lang/CharSequence;Landroid/content/DialogInterface$OnClickListener;)Landroid/app/AlertDialog$Builder;

    .line 353
    invoke-virtual {v0}, Landroid/app/AlertDialog$Builder;->create()Landroid/app/AlertDialog;

    move-result-object v1

    return-object v1
.end method

.method public Dialog_02(Lcom/bitauto/autoeasy/selectcar/Object/Dealer;)Landroid/app/AlertDialog;
    .locals 3
    .parameter "dealer"

    .prologue
    .line 357
    new-instance v0, Landroid/app/AlertDialog$Builder;

    invoke-direct {v0, p0}, Landroid/app/AlertDialog$Builder;-><init>(Landroid/content/Context;)V

    .line 358
    .local v0, builder:Landroid/app/AlertDialog$Builder;
    invoke-virtual {p1}, Lcom/bitauto/autoeasy/selectcar/Object/Dealer;->getVendorName()Ljava/lang/String;

    move-result-object v1

    invoke-virtual {v0, v1}, Landroid/app/AlertDialog$Builder;->setTitle(Ljava/lang/CharSequence;)Landroid/app/AlertDialog$Builder;

    .line 359
    iget-object v1, p0, Lcom/bitauto/autoeasy/favorite/FavoriteList;->str:[Ljava/lang/String;

    new-instance v2, Lcom/bitauto/autoeasy/favorite/FavoriteList$2;

    invoke-direct {v2, p0, p1}, Lcom/bitauto/autoeasy/favorite/FavoriteList$2;-><init>(Lcom/bitauto/autoeasy/favorite/FavoriteList;Lcom/bitauto/autoeasy/selectcar/Object/Dealer;)V

    invoke-virtual {v0, v1, v2}, Landroid/app/AlertDialog$Builder;->setItems([Ljava/lang/CharSequence;Landroid/content/DialogInterface$OnClickListener;)Landroid/app/AlertDialog$Builder;

    .line 382
    invoke-virtual {v0}, Landroid/app/AlertDialog$Builder;->create()Landroid/app/AlertDialog;

    move-result-object v1

    return-object v1
.end method

.method public Dialog_03(Lcom/bitauto/autoeasy/bbs/Object/BbsCarType;)Landroid/app/AlertDialog;
    .locals 3
    .parameter "dealer"

    .prologue
    .line 386
    new-instance v0, Landroid/app/AlertDialog$Builder;

    invoke-direct {v0, p0}, Landroid/app/AlertDialog$Builder;-><init>(Landroid/content/Context;)V

    .line 387
    .local v0, builder:Landroid/app/AlertDialog$Builder;
    invoke-virtual {p1}, Lcom/bitauto/autoeasy/bbs/Object/BbsCarType;->getBbsname()Ljava/lang/String;

    move-result-object v1

    invoke-virtual {v0, v1}, Landroid/app/AlertDialog$Builder;->setTitle(Ljava/lang/CharSequence;)Landroid/app/AlertDialog$Builder;

    .line 388
    iget-object v1, p0, Lcom/bitauto/autoeasy/favorite/FavoriteList;->str:[Ljava/lang/String;

    new-instance v2, Lcom/bitauto/autoeasy/favorite/FavoriteList$3;

    invoke-direct {v2, p0, p1}, Lcom/bitauto/autoeasy/favorite/FavoriteList$3;-><init>(Lcom/bitauto/autoeasy/favorite/FavoriteList;Lcom/bitauto/autoeasy/bbs/Object/BbsCarType;)V

    invoke-virtual {v0, v1, v2}, Landroid/app/AlertDialog$Builder;->setItems([Ljava/lang/CharSequence;Landroid/content/DialogInterface$OnClickListener;)Landroid/app/AlertDialog$Builder;

    .line 410
    invoke-virtual {v0}, Landroid/app/AlertDialog$Builder;->create()Landroid/app/AlertDialog;

    move-result-object v1

    return-object v1
.end method

.method public getBBS()V
    .locals 10

    .prologue
    const v9, 0x7f020029

    const/4 v8, 0x2

    const/4 v2, 0x0

    const v7, 0x7f02003b

    .line 150
    iget-object v0, p0, Lcom/bitauto/autoeasy/favorite/FavoriteList;->contentResolver:Landroid/content/ContentResolver;

    .line 151
    sget-object v1, Lcom/bitauto/autoeasy/db/provider/FAV_BBSContentProvider;->CONTENT_URI:Landroid/net/Uri;

    .line 152
    const-string v5, "ID ASC"

    move-object v3, v2

    move-object v4, v2

    .line 150
    invoke-virtual/range {v0 .. v5}, Landroid/content/ContentResolver;->query(Landroid/net/Uri;[Ljava/lang/String;Ljava/lang/String;[Ljava/lang/String;Ljava/lang/String;)Landroid/database/Cursor;

    move-result-object v6

    .line 153
    .local v6, cursor:Landroid/database/Cursor;
    if-eqz v6, :cond_0

    invoke-interface {v6}, Landroid/database/Cursor;->getCount()I

    move-result v0

    if-lez v0, :cond_0

    .line 154
    invoke-virtual {p0, v6}, Lcom/bitauto/autoeasy/favorite/FavoriteList;->Cursor2List3(Landroid/database/Cursor;)Ljava/util/ArrayList;

    move-result-object v0

    iput-object v0, p0, Lcom/bitauto/autoeasy/favorite/FavoriteList;->list3:Ljava/util/ArrayList;

    .line 155
    new-instance v0, Lcom/bitauto/autoeasy/bbs/Adapter/BbsCarTypeAdapter;

    invoke-direct {v0, p0}, Lcom/bitauto/autoeasy/bbs/Adapter/BbsCarTypeAdapter;-><init>(Landroid/app/Activity;)V

    iput-object v0, p0, Lcom/bitauto/autoeasy/favorite/FavoriteList;->bbsCarTypeAdapter:Lcom/bitauto/autoeasy/bbs/Adapter/BbsCarTypeAdapter;

    .line 156
    iget-object v0, p0, Lcom/bitauto/autoeasy/favorite/FavoriteList;->bbsCarTypeAdapter:Lcom/bitauto/autoeasy/bbs/Adapter/BbsCarTypeAdapter;

    iget-object v1, p0, Lcom/bitauto/autoeasy/favorite/FavoriteList;->list3:Ljava/util/ArrayList;

    invoke-virtual {v0, v1}, Lcom/bitauto/autoeasy/bbs/Adapter/BbsCarTypeAdapter;->setList(Ljava/util/ArrayList;)V

    .line 157
    iget-object v0, p0, Lcom/bitauto/autoeasy/favorite/FavoriteList;->bbsCarTypeAdapter:Lcom/bitauto/autoeasy/bbs/Adapter/BbsCarTypeAdapter;

    iget-object v1, p0, Lcom/bitauto/autoeasy/favorite/FavoriteList;->listView:Landroid/widget/ListView;

    invoke-virtual {v0, v1}, Lcom/bitauto/autoeasy/bbs/Adapter/BbsCarTypeAdapter;->setListView(Landroid/widget/ListView;)V

    .line 159
    iget-object v0, p0, Lcom/bitauto/autoeasy/favorite/FavoriteList;->listView:Landroid/widget/ListView;

    iget-object v1, p0, Lcom/bitauto/autoeasy/favorite/FavoriteList;->bbsCarTypeAdapter:Lcom/bitauto/autoeasy/bbs/Adapter/BbsCarTypeAdapter;

    invoke-virtual {v0, v1}, Landroid/widget/ListView;->setAdapter(Landroid/widget/ListAdapter;)V

    .line 161
    iget-object v0, p0, Lcom/bitauto/autoeasy/favorite/FavoriteList;->button03:Landroid/widget/Button;

    invoke-virtual {v0, v9}, Landroid/widget/Button;->setBackgroundResource(I)V

    .line 162
    iget-object v0, p0, Lcom/bitauto/autoeasy/favorite/FavoriteList;->button02:Landroid/widget/Button;

    invoke-virtual {v0, v7}, Landroid/widget/Button;->setBackgroundResource(I)V

    .line 163
    iget-object v0, p0, Lcom/bitauto/autoeasy/favorite/FavoriteList;->button01:Landroid/widget/Button;

    invoke-virtual {v0, v7}, Landroid/widget/Button;->setBackgroundResource(I)V

    .line 164
    iput v8, p0, Lcom/bitauto/autoeasy/favorite/FavoriteList;->flag:I

    .line 173
    :goto_0
    return-void

    .line 166
    :cond_0
    iget-object v0, p0, Lcom/bitauto/autoeasy/favorite/FavoriteList;->listView:Landroid/widget/ListView;

    invoke-virtual {v0, v2}, Landroid/widget/ListView;->setAdapter(Landroid/widget/ListAdapter;)V

    .line 167
    iget-object v0, p0, Lcom/bitauto/autoeasy/favorite/FavoriteList;->button03:Landroid/widget/Button;

    invoke-virtual {v0, v9}, Landroid/widget/Button;->setBackgroundResource(I)V

    .line 168
    iget-object v0, p0, Lcom/bitauto/autoeasy/favorite/FavoriteList;->button02:Landroid/widget/Button;

    invoke-virtual {v0, v7}, Landroid/widget/Button;->setBackgroundResource(I)V

    .line 169
    iget-object v0, p0, Lcom/bitauto/autoeasy/favorite/FavoriteList;->button01:Landroid/widget/Button;

    invoke-virtual {v0, v7}, Landroid/widget/Button;->setBackgroundResource(I)V

    .line 170
    iput v8, p0, Lcom/bitauto/autoeasy/favorite/FavoriteList;->flag:I

    .line 171
    const-string v0, "\u6682\u65e0\u6536\u85cf\u8bb0\u5f55"

    invoke-static {p0, v0}, Lcom/bitauto/autoeasy/tool/ToolBox;->showToast(Landroid/content/Context;Ljava/lang/String;)V

    goto :goto_0
.end method

.method public getCar()V
    .locals 10

    .prologue
    const v9, 0x7f020029

    const/4 v8, 0x0

    const/4 v2, 0x0

    const v7, 0x7f02003b

    .line 105
    iget-object v0, p0, Lcom/bitauto/autoeasy/favorite/FavoriteList;->contentResolver:Landroid/content/ContentResolver;

    .line 106
    sget-object v1, Lcom/bitauto/autoeasy/db/provider/FAV_CARContentProvider;->CONTENT_URI:Landroid/net/Uri;

    .line 107
    const-string v5, "CARID ASC"

    move-object v3, v2

    move-object v4, v2

    .line 105
    invoke-virtual/range {v0 .. v5}, Landroid/content/ContentResolver;->query(Landroid/net/Uri;[Ljava/lang/String;Ljava/lang/String;[Ljava/lang/String;Ljava/lang/String;)Landroid/database/Cursor;

    move-result-object v6

    .line 108
    .local v6, cursor:Landroid/database/Cursor;
    if-eqz v6, :cond_0

    invoke-interface {v6}, Landroid/database/Cursor;->getCount()I

    move-result v0

    if-lez v0, :cond_0

    .line 109
    invoke-virtual {p0, v6}, Lcom/bitauto/autoeasy/favorite/FavoriteList;->Cursor2List(Landroid/database/Cursor;)Ljava/util/ArrayList;

    move-result-object v0

    iput-object v0, p0, Lcom/bitauto/autoeasy/favorite/FavoriteList;->list:Ljava/util/ArrayList;

    .line 110
    new-instance v0, Lcom/bitauto/autoeasy/favorite/Adapter/FavCarListAdapter;

    iget-object v1, p0, Lcom/bitauto/autoeasy/favorite/FavoriteList;->list:Ljava/util/ArrayList;

    iget-object v2, p0, Lcom/bitauto/autoeasy/favorite/FavoriteList;->listView:Landroid/widget/ListView;

    invoke-direct {v0, v1, v2, p0}, Lcom/bitauto/autoeasy/favorite/Adapter/FavCarListAdapter;-><init>(Ljava/util/ArrayList;Landroid/widget/ListView;Landroid/content/Context;)V

    iput-object v0, p0, Lcom/bitauto/autoeasy/favorite/FavoriteList;->favCarAdapter:Lcom/bitauto/autoeasy/favorite/Adapter/FavCarListAdapter;

    .line 111
    iget-object v0, p0, Lcom/bitauto/autoeasy/favorite/FavoriteList;->listView:Landroid/widget/ListView;

    iget-object v1, p0, Lcom/bitauto/autoeasy/favorite/FavoriteList;->favCarAdapter:Lcom/bitauto/autoeasy/favorite/Adapter/FavCarListAdapter;

    invoke-virtual {v0, v1}, Landroid/widget/ListView;->setAdapter(Landroid/widget/ListAdapter;)V

    .line 112
    iget-object v0, p0, Lcom/bitauto/autoeasy/favorite/FavoriteList;->button01:Landroid/widget/Button;

    invoke-virtual {v0, v9}, Landroid/widget/Button;->setBackgroundResource(I)V

    .line 113
    iget-object v0, p0, Lcom/bitauto/autoeasy/favorite/FavoriteList;->button02:Landroid/widget/Button;

    invoke-virtual {v0, v7}, Landroid/widget/Button;->setBackgroundResource(I)V

    .line 114
    iget-object v0, p0, Lcom/bitauto/autoeasy/favorite/FavoriteList;->button03:Landroid/widget/Button;

    invoke-virtual {v0, v7}, Landroid/widget/Button;->setBackgroundResource(I)V

    .line 115
    iput v8, p0, Lcom/bitauto/autoeasy/favorite/FavoriteList;->flag:I

    .line 124
    :goto_0
    return-void

    .line 117
    :cond_0
    iget-object v0, p0, Lcom/bitauto/autoeasy/favorite/FavoriteList;->listView:Landroid/widget/ListView;

    invoke-virtual {v0, v2}, Landroid/widget/ListView;->setAdapter(Landroid/widget/ListAdapter;)V

    .line 118
    iget-object v0, p0, Lcom/bitauto/autoeasy/favorite/FavoriteList;->button01:Landroid/widget/Button;

    invoke-virtual {v0, v9}, Landroid/widget/Button;->setBackgroundResource(I)V

    .line 119
    iget-object v0, p0, Lcom/bitauto/autoeasy/favorite/FavoriteList;->button02:Landroid/widget/Button;

    invoke-virtual {v0, v7}, Landroid/widget/Button;->setBackgroundResource(I)V

    .line 120
    iget-object v0, p0, Lcom/bitauto/autoeasy/favorite/FavoriteList;->button03:Landroid/widget/Button;

    invoke-virtual {v0, v7}, Landroid/widget/Button;->setBackgroundResource(I)V

    .line 121
    iput v8, p0, Lcom/bitauto/autoeasy/favorite/FavoriteList;->flag:I

    .line 122
    const-string v0, "\u6682\u65e0\u6536\u85cf\u8bb0\u5f55"

    invoke-static {p0, v0}, Lcom/bitauto/autoeasy/tool/ToolBox;->showToast(Landroid/content/Context;Ljava/lang/String;)V

    goto :goto_0
.end method

.method public getDealer()V
    .locals 10

    .prologue
    const v9, 0x7f020029

    const/4 v8, 0x1

    const/4 v2, 0x0

    const v7, 0x7f02003b

    .line 127
    iget-object v0, p0, Lcom/bitauto/autoeasy/favorite/FavoriteList;->contentResolver:Landroid/content/ContentResolver;

    .line 128
    sget-object v1, Lcom/bitauto/autoeasy/db/provider/FAV_DEALERContentProvider;->CONTENT_URI:Landroid/net/Uri;

    .line 129
    const-string v5, "CAR_NAME ASC"

    move-object v3, v2

    move-object v4, v2

    .line 127
    invoke-virtual/range {v0 .. v5}, Landroid/content/ContentResolver;->query(Landroid/net/Uri;[Ljava/lang/String;Ljava/lang/String;[Ljava/lang/String;Ljava/lang/String;)Landroid/database/Cursor;

    move-result-object v6

    .line 130
    .local v6, cursor:Landroid/database/Cursor;
    if-eqz v6, :cond_0

    invoke-interface {v6}, Landroid/database/Cursor;->getCount()I

    move-result v0

    if-lez v0, :cond_0

    .line 131
    iget-object v0, p0, Lcom/bitauto/autoeasy/favorite/FavoriteList;->TAG:Ljava/lang/String;

    new-instance v1, Ljava/lang/StringBuilder;

    const-string v2, "cursor.getCount() : "

    invoke-direct {v1, v2}, Ljava/lang/StringBuilder;-><init>(Ljava/lang/String;)V

    invoke-interface {v6}, Landroid/database/Cursor;->getCount()I

    move-result v2

    invoke-virtual {v1, v2}, Ljava/lang/StringBuilder;->append(I)Ljava/lang/StringBuilder;

    move-result-object v1

    invoke-virtual {v1}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v1

    invoke-static {v0, v1}, Landroid/util/Log;->i(Ljava/lang/String;Ljava/lang/String;)I

    .line 132
    invoke-virtual {p0, v6}, Lcom/bitauto/autoeasy/favorite/FavoriteList;->Cursor2List2(Landroid/database/Cursor;)Ljava/util/ArrayList;

    move-result-object v0

    iput-object v0, p0, Lcom/bitauto/autoeasy/favorite/FavoriteList;->list2:Ljava/util/ArrayList;

    .line 133
    new-instance v0, Lcom/bitauto/autoeasy/news/Adapter/DealerTitleAdapter;

    iget-object v1, p0, Lcom/bitauto/autoeasy/favorite/FavoriteList;->list2:Ljava/util/ArrayList;

    invoke-direct {v0, v1, p0}, Lcom/bitauto/autoeasy/news/Adapter/DealerTitleAdapter;-><init>(Ljava/util/ArrayList;Landroid/content/Context;)V

    iput-object v0, p0, Lcom/bitauto/autoeasy/favorite/FavoriteList;->dealerAdapter:Lcom/bitauto/autoeasy/news/Adapter/DealerTitleAdapter;

    .line 134
    iget-object v0, p0, Lcom/bitauto/autoeasy/favorite/FavoriteList;->listView:Landroid/widget/ListView;

    iget-object v1, p0, Lcom/bitauto/autoeasy/favorite/FavoriteList;->dealerAdapter:Lcom/bitauto/autoeasy/news/Adapter/DealerTitleAdapter;

    invoke-virtual {v0, v1}, Landroid/widget/ListView;->setAdapter(Landroid/widget/ListAdapter;)V

    .line 135
    iget-object v0, p0, Lcom/bitauto/autoeasy/favorite/FavoriteList;->button02:Landroid/widget/Button;

    invoke-virtual {v0, v9}, Landroid/widget/Button;->setBackgroundResource(I)V

    .line 136
    iget-object v0, p0, Lcom/bitauto/autoeasy/favorite/FavoriteList;->button01:Landroid/widget/Button;

    invoke-virtual {v0, v7}, Landroid/widget/Button;->setBackgroundResource(I)V

    .line 137
    iget-object v0, p0, Lcom/bitauto/autoeasy/favorite/FavoriteList;->button03:Landroid/widget/Button;

    invoke-virtual {v0, v7}, Landroid/widget/Button;->setBackgroundResource(I)V

    .line 138
    iput v8, p0, Lcom/bitauto/autoeasy/favorite/FavoriteList;->flag:I

    .line 147
    :goto_0
    return-void

    .line 140
    :cond_0
    iget-object v0, p0, Lcom/bitauto/autoeasy/favorite/FavoriteList;->listView:Landroid/widget/ListView;

    invoke-virtual {v0, v2}, Landroid/widget/ListView;->setAdapter(Landroid/widget/ListAdapter;)V

    .line 141
    iget-object v0, p0, Lcom/bitauto/autoeasy/favorite/FavoriteList;->button02:Landroid/widget/Button;

    invoke-virtual {v0, v9}, Landroid/widget/Button;->setBackgroundResource(I)V

    .line 142
    iget-object v0, p0, Lcom/bitauto/autoeasy/favorite/FavoriteList;->button01:Landroid/widget/Button;

    invoke-virtual {v0, v7}, Landroid/widget/Button;->setBackgroundResource(I)V

    .line 143
    iget-object v0, p0, Lcom/bitauto/autoeasy/favorite/FavoriteList;->button03:Landroid/widget/Button;

    invoke-virtual {v0, v7}, Landroid/widget/Button;->setBackgroundResource(I)V

    .line 144
    iput v8, p0, Lcom/bitauto/autoeasy/favorite/FavoriteList;->flag:I

    .line 145
    const-string v0, "\u6682\u65e0\u6536\u85cf\u8bb0\u5f55"

    invoke-static {p0, v0}, Lcom/bitauto/autoeasy/tool/ToolBox;->showToast(Landroid/content/Context;Ljava/lang/String;)V

    goto :goto_0
.end method

.method public initView()V
    .locals 3

    .prologue
    const v2, 0x7f02003b

    .line 85
    const v0, 0x7f030026

    invoke-virtual {p0, v0}, Lcom/bitauto/autoeasy/favorite/FavoriteList;->setContentView(I)V

    .line 86
    const v0, 0x7f0b01b8

    invoke-virtual {p0, v0}, Lcom/bitauto/autoeasy/favorite/FavoriteList;->findViewById(I)Landroid/view/View;

    move-result-object v0

    check-cast v0, Landroid/widget/Button;

    iput-object v0, p0, Lcom/bitauto/autoeasy/favorite/FavoriteList;->button01:Landroid/widget/Button;

    .line 87
    iget-object v0, p0, Lcom/bitauto/autoeasy/favorite/FavoriteList;->button01:Landroid/widget/Button;

    invoke-virtual {v0, p0}, Landroid/widget/Button;->setOnClickListener(Landroid/view/View$OnClickListener;)V

    .line 88
    const v0, 0x7f0b01b9

    invoke-virtual {p0, v0}, Lcom/bitauto/autoeasy/favorite/FavoriteList;->findViewById(I)Landroid/view/View;

    move-result-object v0

    check-cast v0, Landroid/widget/Button;

    iput-object v0, p0, Lcom/bitauto/autoeasy/favorite/FavoriteList;->button02:Landroid/widget/Button;

    .line 89
    iget-object v0, p0, Lcom/bitauto/autoeasy/favorite/FavoriteList;->button02:Landroid/widget/Button;

    invoke-virtual {v0, p0}, Landroid/widget/Button;->setOnClickListener(Landroid/view/View$OnClickListener;)V

    .line 90
    const v0, 0x7f0b01ba

    invoke-virtual {p0, v0}, Lcom/bitauto/autoeasy/favorite/FavoriteList;->findViewById(I)Landroid/view/View;

    move-result-object v0

    check-cast v0, Landroid/widget/Button;

    iput-object v0, p0, Lcom/bitauto/autoeasy/favorite/FavoriteList;->button03:Landroid/widget/Button;

    .line 91
    iget-object v0, p0, Lcom/bitauto/autoeasy/favorite/FavoriteList;->button03:Landroid/widget/Button;

    invoke-virtual {v0, p0}, Landroid/widget/Button;->setOnClickListener(Landroid/view/View$OnClickListener;)V

    .line 92
    invoke-virtual {p0}, Lcom/bitauto/autoeasy/favorite/FavoriteList;->getListView()Landroid/widget/ListView;

    move-result-object v0

    iput-object v0, p0, Lcom/bitauto/autoeasy/favorite/FavoriteList;->listView:Landroid/widget/ListView;

    .line 93
    iget-object v0, p0, Lcom/bitauto/autoeasy/favorite/FavoriteList;->listView:Landroid/widget/ListView;

    invoke-virtual {v0, p0}, Landroid/widget/ListView;->setOnItemClickListener(Landroid/widget/AdapterView$OnItemClickListener;)V

    .line 94
    iget-object v0, p0, Lcom/bitauto/autoeasy/favorite/FavoriteList;->listView:Landroid/widget/ListView;

    invoke-virtual {v0, p0}, Landroid/widget/ListView;->setOnItemLongClickListener(Landroid/widget/AdapterView$OnItemLongClickListener;)V

    .line 95
    invoke-virtual {p0}, Lcom/bitauto/autoeasy/favorite/FavoriteList;->getContentResolver()Landroid/content/ContentResolver;

    move-result-object v0

    iput-object v0, p0, Lcom/bitauto/autoeasy/favorite/FavoriteList;->contentResolver:Landroid/content/ContentResolver;

    .line 97
    iget-object v0, p0, Lcom/bitauto/autoeasy/favorite/FavoriteList;->button01:Landroid/widget/Button;

    const v1, 0x7f020029

    invoke-virtual {v0, v1}, Landroid/widget/Button;->setBackgroundResource(I)V

    .line 98
    iget-object v0, p0, Lcom/bitauto/autoeasy/favorite/FavoriteList;->button02:Landroid/widget/Button;

    invoke-virtual {v0, v2}, Landroid/widget/Button;->setBackgroundResource(I)V

    .line 99
    iget-object v0, p0, Lcom/bitauto/autoeasy/favorite/FavoriteList;->button03:Landroid/widget/Button;

    invoke-virtual {v0, v2}, Landroid/widget/Button;->setBackgroundResource(I)V

    .line 101
    return-void
.end method

.method public onClick(Landroid/view/View;)V
    .locals 2
    .parameter "v"

    .prologue
    .line 265
    invoke-virtual {p1}, Landroid/view/View;->getId()I

    move-result v0

    packed-switch v0, :pswitch_data_0

    .line 282
    :cond_0
    :goto_0
    return-void

    .line 267
    :pswitch_0
    iget v0, p0, Lcom/bitauto/autoeasy/favorite/FavoriteList;->flag:I

    if-eqz v0, :cond_0

    .line 268
    invoke-virtual {p0}, Lcom/bitauto/autoeasy/favorite/FavoriteList;->getCar()V

    goto :goto_0

    .line 272
    :pswitch_1
    iget v0, p0, Lcom/bitauto/autoeasy/favorite/FavoriteList;->flag:I

    const/4 v1, 0x1

    if-eq v0, v1, :cond_0

    .line 273
    invoke-virtual {p0}, Lcom/bitauto/autoeasy/favorite/FavoriteList;->getDealer()V

    goto :goto_0

    .line 277
    :pswitch_2
    iget v0, p0, Lcom/bitauto/autoeasy/favorite/FavoriteList;->flag:I

    const/4 v1, 0x2

    if-eq v0, v1, :cond_0

    .line 278
    invoke-virtual {p0}, Lcom/bitauto/autoeasy/favorite/FavoriteList;->getBBS()V

    goto :goto_0

    .line 265
    :pswitch_data_0
    .packed-switch 0x7f0b01b8
        :pswitch_0
        :pswitch_1
        :pswitch_2
    .end packed-switch
.end method

.method protected onCreate(Landroid/os/Bundle;)V
    .locals 0
    .parameter "savedInstanceState"

    .prologue
    .line 70
    invoke-super {p0, p1}, Lcom/bitauto/autoeasy/BaseListActivity;->onCreate(Landroid/os/Bundle;)V

    .line 72
    invoke-virtual {p0}, Lcom/bitauto/autoeasy/favorite/FavoriteList;->initView()V

    .line 73
    invoke-virtual {p0}, Lcom/bitauto/autoeasy/favorite/FavoriteList;->getCar()V

    .line 74
    return-void
.end method

.method public onItemClick(Landroid/widget/AdapterView;Landroid/view/View;IJ)V
    .locals 6
    .parameter
    .parameter "view"
    .parameter "position"
    .parameter "id"
    .annotation system Ldalvik/annotation/Signature;
        value = {
            "(",
            "Landroid/widget/AdapterView",
            "<*>;",
            "Landroid/view/View;",
            "IJ)V"
        }
    .end annotation

    .prologue
    .line 287
    .local p1, parent:Landroid/widget/AdapterView;,"Landroid/widget/AdapterView<*>;"
    iget-object v3, p0, Lcom/bitauto/autoeasy/favorite/FavoriteList;->TAG:Ljava/lang/String;

    new-instance v4, Ljava/lang/StringBuilder;

    const-string v5, "flag : "

    invoke-direct {v4, v5}, Ljava/lang/StringBuilder;-><init>(Ljava/lang/String;)V

    iget v5, p0, Lcom/bitauto/autoeasy/favorite/FavoriteList;->flag:I

    invoke-virtual {v4, v5}, Ljava/lang/StringBuilder;->append(I)Ljava/lang/StringBuilder;

    move-result-object v4

    invoke-virtual {v4}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v4

    invoke-static {v3, v4}, Landroid/util/Log;->i(Ljava/lang/String;Ljava/lang/String;)I

    .line 288
    iget v3, p0, Lcom/bitauto/autoeasy/favorite/FavoriteList;->flag:I

    packed-switch v3, :pswitch_data_0

    .line 309
    :goto_0
    return-void

    .line 290
    :pswitch_0
    new-instance v0, Landroid/content/Intent;

    const-class v3, Lcom/bitauto/autoeasy/selectcar/BrandTypeActivity;

    invoke-direct {v0, p0, v3}, Landroid/content/Intent;-><init>(Landroid/content/Context;Ljava/lang/Class;)V

    .line 291
    .local v0, intent00:Landroid/content/Intent;
    const-string v4, "carid"

    iget-object v3, p0, Lcom/bitauto/autoeasy/favorite/FavoriteList;->list:Ljava/util/ArrayList;

    invoke-virtual {v3, p3}, Ljava/util/ArrayList;->get(I)Ljava/lang/Object;

    move-result-object v3

    check-cast v3, Lcom/bitauto/autoeasy/selectcar/Object/CarSummary;

    invoke-virtual {v3}, Lcom/bitauto/autoeasy/selectcar/Object/CarSummary;->getCarID()I

    move-result v3

    invoke-virtual {v0, v4, v3}, Landroid/content/Intent;->putExtra(Ljava/lang/String;I)Landroid/content/Intent;

    .line 292
    invoke-virtual {p0, v0}, Lcom/bitauto/autoeasy/favorite/FavoriteList;->startActivity(Landroid/content/Intent;)V

    goto :goto_0

    .line 295
    .end local v0           #intent00:Landroid/content/Intent;
    :pswitch_1
    new-instance v1, Landroid/content/Intent;

    const-class v3, Lcom/bitauto/autoeasy/selectcar/DealerDetailActivity;

    invoke-direct {v1, p0, v3}, Landroid/content/Intent;-><init>(Landroid/content/Context;Ljava/lang/Class;)V

    .line 296
    .local v1, intent01:Landroid/content/Intent;
    const-string v4, "VendorID"

    iget-object v3, p0, Lcom/bitauto/autoeasy/favorite/FavoriteList;->list2:Ljava/util/ArrayList;

    invoke-virtual {v3, p3}, Ljava/util/ArrayList;->get(I)Ljava/lang/Object;

    move-result-object v3

    check-cast v3, Lcom/bitauto/autoeasy/selectcar/Object/Dealer;

    invoke-virtual {v3}, Lcom/bitauto/autoeasy/selectcar/Object/Dealer;->getVendorID()Ljava/lang/String;

    move-result-object v3

    invoke-virtual {v1, v4, v3}, Landroid/content/Intent;->putExtra(Ljava/lang/String;Ljava/lang/String;)Landroid/content/Intent;

    .line 297
    const-string v4, "vendorName"

    iget-object v3, p0, Lcom/bitauto/autoeasy/favorite/FavoriteList;->list2:Ljava/util/ArrayList;

    invoke-virtual {v3, p3}, Ljava/util/ArrayList;->get(I)Ljava/lang/Object;

    move-result-object v3

    check-cast v3, Lcom/bitauto/autoeasy/selectcar/Object/Dealer;

    invoke-virtual {v3}, Lcom/bitauto/autoeasy/selectcar/Object/Dealer;->getVendorName()Ljava/lang/String;

    move-result-object v3

    invoke-virtual {v1, v4, v3}, Landroid/content/Intent;->putExtra(Ljava/lang/String;Ljava/lang/String;)Landroid/content/Intent;

    .line 298
    const-string v3, "is_fav"

    const/4 v4, 0x1

    invoke-virtual {v1, v3, v4}, Landroid/content/Intent;->putExtra(Ljava/lang/String;Z)Landroid/content/Intent;

    .line 299
    invoke-virtual {p0, v1}, Lcom/bitauto/autoeasy/favorite/FavoriteList;->startActivity(Landroid/content/Intent;)V

    goto :goto_0

    .line 302
    .end local v1           #intent01:Landroid/content/Intent;
    :pswitch_2
    new-instance v2, Landroid/content/Intent;

    const-class v3, Lcom/bitauto/autoeasy/bbs/BbsListActivity;

    invoke-direct {v2, p0, v3}, Landroid/content/Intent;-><init>(Landroid/content/Context;Ljava/lang/Class;)V

    .line 303
    .local v2, intent02:Landroid/content/Intent;
    const-string v4, "title"

    iget-object v3, p0, Lcom/bitauto/autoeasy/favorite/FavoriteList;->list3:Ljava/util/ArrayList;

    invoke-virtual {v3, p3}, Ljava/util/ArrayList;->get(I)Ljava/lang/Object;

    move-result-object v3

    check-cast v3, Lcom/bitauto/autoeasy/bbs/Object/BbsCarType;

    invoke-virtual {v3}, Lcom/bitauto/autoeasy/bbs/Object/BbsCarType;->getBbsname()Ljava/lang/String;

    move-result-object v3

    invoke-virtual {v2, v4, v3}, Landroid/content/Intent;->putExtra(Ljava/lang/String;Ljava/lang/String;)Landroid/content/Intent;

    .line 304
    const-string v4, "bbsid"

    iget-object v3, p0, Lcom/bitauto/autoeasy/favorite/FavoriteList;->list3:Ljava/util/ArrayList;

    invoke-virtual {v3, p3}, Ljava/util/ArrayList;->get(I)Ljava/lang/Object;

    move-result-object v3

    check-cast v3, Lcom/bitauto/autoeasy/bbs/Object/BbsCarType;

    invoke-virtual {v3}, Lcom/bitauto/autoeasy/bbs/Object/BbsCarType;->getBbsid()Ljava/lang/String;

    move-result-object v3

    invoke-virtual {v2, v4, v3}, Landroid/content/Intent;->putExtra(Ljava/lang/String;Ljava/lang/String;)Landroid/content/Intent;

    .line 305
    invoke-virtual {p0, v2}, Lcom/bitauto/autoeasy/favorite/FavoriteList;->startActivity(Landroid/content/Intent;)V

    goto :goto_0

    .line 288
    :pswitch_data_0
    .packed-switch 0x0
        :pswitch_0
        :pswitch_1
        :pswitch_2
    .end packed-switch
.end method

.method public onItemLongClick(Landroid/widget/AdapterView;Landroid/view/View;IJ)Z
    .locals 1
    .parameter
    .parameter "view"
    .parameter "position"
    .parameter "id"
    .annotation system Ldalvik/annotation/Signature;
        value = {
            "(",
            "Landroid/widget/AdapterView",
            "<*>;",
            "Landroid/view/View;",
            "IJ)Z"
        }
    .end annotation

    .prologue
    .line 314
    .local p1, parent:Landroid/widget/AdapterView;,"Landroid/widget/AdapterView<*>;"
    iget v0, p0, Lcom/bitauto/autoeasy/favorite/FavoriteList;->flag:I

    packed-switch v0, :pswitch_data_0

    .line 325
    :goto_0
    const/4 v0, 0x0

    return v0

    .line 316
    :pswitch_0
    iget-object v0, p0, Lcom/bitauto/autoeasy/favorite/FavoriteList;->list:Ljava/util/ArrayList;

    invoke-virtual {v0, p3}, Ljava/util/ArrayList;->get(I)Ljava/lang/Object;

    move-result-object v0

    check-cast v0, Lcom/bitauto/autoeasy/selectcar/Object/CarSummary;

    invoke-virtual {p0, v0}, Lcom/bitauto/autoeasy/favorite/FavoriteList;->Dialog_01(Lcom/bitauto/autoeasy/selectcar/Object/CarSummary;)Landroid/app/AlertDialog;

    move-result-object v0

    invoke-virtual {v0}, Landroid/app/AlertDialog;->show()V

    goto :goto_0

    .line 319
    :pswitch_1
    iget-object v0, p0, Lcom/bitauto/autoeasy/favorite/FavoriteList;->list2:Ljava/util/ArrayList;

    invoke-virtual {v0, p3}, Ljava/util/ArrayList;->get(I)Ljava/lang/Object;

    move-result-object v0

    check-cast v0, Lcom/bitauto/autoeasy/selectcar/Object/Dealer;

    invoke-virtual {p0, v0}, Lcom/bitauto/autoeasy/favorite/FavoriteList;->Dialog_02(Lcom/bitauto/autoeasy/selectcar/Object/Dealer;)Landroid/app/AlertDialog;

    move-result-object v0

    invoke-virtual {v0}, Landroid/app/AlertDialog;->show()V

    goto :goto_0

    .line 322
    :pswitch_2
    iget-object v0, p0, Lcom/bitauto/autoeasy/favorite/FavoriteList;->list3:Ljava/util/ArrayList;

    invoke-virtual {v0, p3}, Ljava/util/ArrayList;->get(I)Ljava/lang/Object;

    move-result-object v0

    check-cast v0, Lcom/bitauto/autoeasy/bbs/Object/BbsCarType;

    invoke-virtual {p0, v0}, Lcom/bitauto/autoeasy/favorite/FavoriteList;->Dialog_03(Lcom/bitauto/autoeasy/bbs/Object/BbsCarType;)Landroid/app/AlertDialog;

    move-result-object v0

    invoke-virtual {v0}, Landroid/app/AlertDialog;->show()V

    goto :goto_0

    .line 314
    nop

    :pswitch_data_0
    .packed-switch 0x0
        :pswitch_0
        :pswitch_1
        :pswitch_2
    .end packed-switch
.end method

.method protected onResume()V
    .locals 2

    .prologue
    .line 78
    invoke-virtual {p0}, Lcom/bitauto/autoeasy/favorite/FavoriteList;->getCar()V

    .line 79
    sget-object v0, Lcom/bitauto/autoeasy/MainActivity;->mainActivity:Lcom/bitauto/autoeasy/MainActivity;

    const/4 v1, 0x0

    invoke-virtual {v0, v1}, Lcom/bitauto/autoeasy/MainActivity;->setTitleButtonVisit(Z)V

    .line 80
    invoke-super {p0}, Lcom/bitauto/autoeasy/BaseListActivity;->onResume()V

    .line 81
    return-void
.end method
